package com.ruicar.afs.cloud.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruicar.afs.cloud.product.condition.ProductDiscountSubsidyCondition;
import com.ruicar.afs.cloud.product.entity.ProductDiscountSubsidy;
import com.ruicar.afs.cloud.product.vo.ExtrasInfoVo;
import com.ruicar.afs.cloud.product.vo.ProductDiscountSubsidyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xudongdong
 * @date 2020-05-16
 */
public interface ProductDiscountConfigMapper extends BaseMapper<ProductDiscountSubsidy> {

    /**
     * @return
     * @描述 获取贴息规则
     */
    List<ExtrasInfoVo> getSelectDiscountRuleData();

    IPage<List<ProductDiscountSubsidyVo>> getDiscountConfigData(Page page, @Param("query") ProductDiscountSubsidyCondition config);
}
